Skip to content

Commit

Permalink
Show correct quantity in item form
Browse files Browse the repository at this point in the history
invert ternary condittions to show correct quantity at any time
  • Loading branch information
jekkos committed Apr 24, 2015
1 parent 4916f98 commit 49e4567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/items/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
'id'=>$key.'_quantity',
'class'=>'quantity',
'size'=>'8',
'value'=>isset($item_info->item_id)?0:$location_detail['quantity'])
'value'=>isset($item_info->item_id)?$location_detail['quantity']:0:)
);?>
</div>
</div>
Expand Down Expand Up @@ -390,4 +390,4 @@
}
});
});
</script>
</script>

0 comments on commit 49e4567

Please sign in to comment.