Commit 265f09b6 authored by A. Wilcox's avatar A. Wilcox

iUI: NewItemVC: Sell similar on Etsy should copy tags/materials.

parent 35fd9c90
......@@ -13,6 +13,7 @@
#import "WTTextViewController.h"
#include <Models/AuSite.h>
#include <Models/eBaySite.h>
#include <Models/EtsyItem.h>
#include <Models/EtsySite.h>
#import "GANTracker.h"
......@@ -24,6 +25,9 @@ extern const char *site_names[3];
-(WTEditableCell *)getCategoryCell;
-(WTEditableCell *)getPriceCell;
-(WTEditableCell *)getShippingCell;
-(NSArray *)materialsForEtsyItem:(EtsyItem *)item;
-(NSArray *)tagsForEtsyItem:(EtsyItem *)item;
@end
@interface NewItemViewController(Internal)
......@@ -89,6 +93,14 @@ extern const char *site_names[3];
}
}
if(_item->parent()->siteCode() == SITE_ETSY)
{
EtsyItem *etsy = static_cast<EtsyItem *>(_item);
[changedKeys setObject:[self tagsForEtsyItem:etsy] forKey:kItemPropertyTags];
[changedKeys setObject:[self materialsForEtsyItem:etsy] forKey:kItemPropertyMaterials];
}
// This only works if the base item AND receiving site are eBay
if(_site->siteCode() == _item->parent()->siteCode() && _site->siteCode() == SITE_EBAY)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment