[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6899] trunk
- Subject: SF.net SVN: ledger-smb:[6899] trunk
- From: ..hidden..
- Date: Wed, 26 Feb 2014 15:00:23 +0000
Revision: 6899
http://sourceforge.net/p/ledger-smb/code/6899
Author: einhverfr
Date: 2014-02-26 15:00:22 +0000 (Wed, 26 Feb 2014)
Log Message:
-----------
Fix for 1028, internal server error when saving a part without updating, following adding a customer or vendor row
Modified Paths:
--------------
trunk/Changelog
trunk/LedgerSMB/IC.pm
trunk/bin/ic.pl
Modified: trunk/Changelog
===================================================================
--- trunk/Changelog 2014-02-26 14:44:35 UTC (rev 6898)
+++ trunk/Changelog 2014-02-26 15:00:22 UTC (rev 6899)
@@ -110,6 +110,7 @@
Changelog for 1.3.39
* Fixed Internal Server Error clicking through ar/ap report (Chris T, 1022)
* Fixed internal server error deleting part (Chris T, 1027)
+* Fixed Internal server error saving part with all vendor rows (Chris T, 1028)
Changelog for 1.3.38
* Fixed AR/AP transactions resetting currency/exchange rate (Chris T)
Modified: trunk/LedgerSMB/IC.pm
===================================================================
--- trunk/LedgerSMB/IC.pm 2014-02-26 14:44:35 UTC (rev 6898)
+++ trunk/LedgerSMB/IC.pm 2014-02-26 15:00:22 UTC (rev 6899)
@@ -1,4 +1,3 @@
-
=head1 NAME
LedgerSMB::IC - Inventory Control backend
Modified: trunk/bin/ic.pl
===================================================================
--- trunk/bin/ic.pl 2014-02-26 14:44:35 UTC (rev 6898)
+++ trunk/bin/ic.pl 2014-02-26 15:00:22 UTC (rev 6899)
@@ -1847,6 +1847,11 @@
$olditem = $form->{id};
+ check_vendor();
+ check_customer();
+ $form->{vendor_rows} += 1 if $form->{"vendor_$form->{vendor_rows}"};
+ $form->{customer_rows} += 1 if $form->{"customer_$form->{customer_rows}"};
+
# save part
$rc = IC->save( \%myconfig, \%$form );
$rc = 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits