Menu

#999 Opening a contact fails with error

1.4
closed-fixed
None
5
2014-01-30
2014-01-26
John Locke
No

10:17 <freelock> After searching for a customer, trying to open from Contacts -> Search, get this:
10:17 <freelock> Attribute (curr) is required at constructor LedgerSMB::Entity::Credit_Account::new (defined at LedgerSMB/Entity/Credit_Account.pm line 460) line 79

Discussion

  • Chris Travers

    Chris Travers - 2014-01-29
    • assigned_to: Chris Travers
     
  • Chris Travers

    Chris Travers - 2014-01-29

    this is after an grade, so likely there is an issue with the upgrade script.

     

    Last edit: Chris Travers 2014-01-29
  • Chris Travers

    Chris Travers - 2014-01-30

    To fix an existing database, run:

    UPDATE entity_credit_account SET curr = defaults_get_defaultcurrency()
    WHERE curr IS NULL;

    This has been added to upgrade scripts in 6709

     
  • Chris Travers

    Chris Travers - 2014-01-30
    • status: open --> closed-fixed