Ignore:
Timestamp:
08/17/09 02:59:06 (15 years ago)
Author:
nanardon
Message:
  • SQL: set attributes now make difference between no action and error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm

    r352 r356  
    305305sub set_fields { 
    306306    my ($self, %data) = @_; 
     307    my $updated_attributes = 0; 
    307308    my @fields; 
    308309    my @vals; 
     
    336337            return; 
    337338        }; 
     339        $updated_attributes = scalar(@fields); 
    338340    } 
    339341     
     
    388390                }; 
    389391            } 
    390         } 
    391     } 
    392  
    393     1; 
     392            $updated_attributes++; 
     393        } 
     394    } 
     395 
     396    $updated_attributes; 
    394397} 
    395398 
Note: See TracChangeset for help on using the changeset viewer.