[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3201] trunk/LedgerSMB/PriceMatrix.pm



Revision: 3201
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3201&view=rev
Author:   ehuelsmann
Date:     2011-06-08 20:04:39 +0000 (Wed, 08 Jun 2011)

Log Message:
-----------
Improve error reported upon incomplete form submission.

 * LedgerSMB/PriceMatrix.pm (price_matrix): Change error message string.

Modified Paths:
--------------
    trunk/LedgerSMB/PriceMatrix.pm

Modified: trunk/LedgerSMB/PriceMatrix.pm
===================================================================
--- trunk/LedgerSMB/PriceMatrix.pm	2011-06-08 19:57:37 UTC (rev 3200)
+++ trunk/LedgerSMB/PriceMatrix.pm	2011-06-08 20:04:39 UTC (rev 3201)
@@ -124,7 +124,7 @@
     } elsif ( $form->{vendor_id} ) {
         $pmh->execute( $ref->{id} );
     } else {
-        $form->error('Invalid Form');
+        $form->error('Missing counter-party (customer or vendor)');
         return;
     }
     if ( $mref = $pmh->fetchrow_hashref(NAME_lc) ) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.