Skip to content

Commit

Permalink
Fixed mod rank always being 0 when adding a new Listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Versalkul committed Aug 28, 2016
1 parent 99bf0a5 commit b94579a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WarframeMarketClient/GUI/Tabs/Tab_Items.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<ComboBox
IsEditable="False"
IsEnabled="{Binding Path=ModRank, Converter={StaticResource ModRankToBooleanConverter}}"
SelectedIndex="{Binding Path=ModRank}"
SelectedIndex="{Binding Path=ModRank,UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding Path=ModRanks}"
Loaded="EditView_Loaded" />
</DataTemplate>
Expand Down
3 changes: 2 additions & 1 deletion WarframeMarketClient/Logic/MarketManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,9 @@ public bool EditItem(WarframeItem item)
public bool AddItem(WarframeItem item)
{
if (!ItemMap.IsValidItemName(item.Name)) return false;
string modRank = item.ModRank >= 0 ? $"core_mod_lvl={item.ModRank}&" : "";
string sellType = item.IsSellOffer ? "sell" : "buy";
string postData = $"item_name={item.Name.Replace(' ', '+')}&item_type={item.Category}&action_type={sellType}&item_quantity={item.Count}&platina={item.Price}";
string postData = $"item_name={item.Name.Replace(' ', '+')}&item_type={item.Category}&action_type={sellType}&{modRank}item_quantity={item.Count}&platina={item.Price}";


using (HttpWebResponse response = Webhelper.PostPage("http://warframe.market/api/place_order", postData))
Expand Down
4 changes: 2 additions & 2 deletions WarframeMarketClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]

0 comments on commit b94579a

Please sign in to comment.