summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog3
-rwxr-xr-xLedgerSMB/Form.pm2
-rwxr-xr-xLedgerSMB/PE.pm2
3 files changed, 4 insertions, 3 deletions
diff --git a/Changelog b/Changelog
index f22e78d2..1ebb9d20 100644
--- a/Changelog
+++ b/Changelog
@@ -5,7 +5,8 @@ Changelog for 1.2.6
* Fixed the alias inconsistancy for the ledgersmb-httpd.conf (Chris T).
* Fixed invalid html in ca.pl (reported by Donna Robinson) (Chris T)
* Fixed error searching for customer by address (Chris T)
-* Fixed error db error saving project (Chris T)
+* Fixed error db error saving items with custom fields (Chris T)
+* Fixed db error saving project with NULL customer id (Chris T)
Changelog for 1.2.5
* Partsgroup handling corrected on POS and Sales invoice screens (Chris T)
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 87648020..6c3d3d5a 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1537,7 +1537,7 @@ sub run_custom_queries {
if ( $query_type eq 'UPDATE' ) {
$query = "DELETE FROM $_ WHERE row_id = ?";
my $sth = $dbh->prepare($query);
- $sth->execute->( $self->{ "id" . "$linenum" } )
+ $sth->execute( $self->{ "id" . "$linenum" } )
|| $self->dberror($query);
}
elsif ( $query_type eq 'INSERT' ) {
diff --git a/LedgerSMB/PE.pm b/LedgerSMB/PE.pm
index 24247670..4e17360c 100755
--- a/LedgerSMB/PE.pm
+++ b/LedgerSMB/PE.pm
@@ -204,7 +204,7 @@ sub save_project {
my $dbh = $form->{dbh};
- $form->{customer_id} ||= 'NULL';
+ $form->{customer_id} ||= undef;
$form->{projectnumber} =
$form->update_defaults( $myconfig, "projectnumber", $dbh )