Fix LedgerSMB::App_State::User not being initialized correctly.
(grafted from a6113219660efa22a82db0f37b4b1dc27fc7a14e)

--HG--
extra : source : a6113219660efa22a82db0f37b4b1dc27fc7a14e
Avoiding double render after import on failure
Merge pull request #79 from einhverfr/1.4-import-rendering

1.4 import rendering
Merge pull request #15 from ledgersmb/1.4

1.4: Update.
resolving conflicts on cherry-pick
Fixing conflicts from cherry-pickng
Merge pull request #81 from einhverfr/1.4_fixing_perm_update

Lock batch function
Fix #1130: Can't attach file (PDF) to contact.
(grafted from 09535cdd6346ca12b8cf0e44ba33e6d0ab85b3ea)

--HG--
extra : source : 09535cdd6346ca12b8cf0e44ba33e6d0ab85b3ea
Re #1164: Add hidden 'batch_id' value.
(grafted from dd7555fea1198523ae87ea50b32e0935b4db1d2b)

--HG--
extra : source : dd7555fea1198523ae87ea50b32e0935b4db1d2b
Fix all buttons on single batch screen (fixes #1164 and #1163).
(grafted from 1f2f414c60bf743a431bf71f0f25ddc188534b6a)

--HG--
extra : source : 1f2f414c60bf743a431bf71f0f25ddc188534b6a
Merge pull request #16 from ledgersmb/1.4

1.4: Sync with master repo.
De-duplicate function naming.
(grafted from a1f902bdb5f6a31aff58ef16217661adbb9a41e9)

--HG--
extra : source : a1f902bdb5f6a31aff58ef16217661adbb9a41e9
Fix REVOKE statement.
(grafted from 5b0a504d56541aa80100049b6e20329880a72839)

--HG--
extra : source : 5b0a504d56541aa80100049b6e20329880a72839
Merge pull request #83 from ehuelsmann/1.4

Fix #1130: Can't attach file to contact.
Fix #1154: ECA's locations table doesn't show country.
(grafted from 73b95366cb22419c250d437114bcf2bdd2cf0127)

--HG--
extra : source : 73b95366cb22419c250d437114bcf2bdd2cf0127
Merge pull request #87 from ehuelsmann/1.4

Fix #1154: ECA's locations table doesn't show country.
Follow-up commit to fix #1150, fixing all SELECT elements with OPTION tags
whose value is identified by a hash key named 'id'.
(grafted from a0546cff2076f3a78be54559ca3ab4d1d91f32f6)

--HG--
extra : source : a0546cff2076f3a78be54559ca3ab4d1d91f32f6
Follow-up to fix #1150; now we have a newcode section, do we still need to fallback to oldcode...
(grafted from 8eba9525b879f012f730df14e7ef90a7e75e5f67)

--HG--
extra : source : 8eba9525b879f012f730df14e7ef90a7e75e5f67
Fix #1144: Contact 'Save as new' broken (action not defined).
(grafted from 37ca311c046b2399c56e5d974fe53c0ce6f8fe8b)

--HG--
extra : source : 37ca311c046b2399c56e5d974fe53c0ce6f8fe8b
Fix button title in journal entry (now lists 'value').
(grafted from 44b13e18b25f63704a9c9c27502f419240b313c9)

--HG--
extra : source : 44b13e18b25f63704a9c9c27502f419240b313c9