Added ability to store creator, updater, date of create and date of edit on entities- columns for this added to Voucher and CampData.

Removed permission check from Service::loadById- caused access violation when user had not have read permission.
This commit is contained in:
2017-08-21 14:16:43 +02:00
parent eff4190c99
commit 836521e533
11 changed files with 176 additions and 4 deletions
+4
View File
@@ -105,6 +105,8 @@ void CampService::saveCamp(CampDataPtr data)
NumberSeriesService numSrv;
data->setNumSer(numSrv.nextStrForPlugin("CAMP"));
addDateAndUser(data, true);
db->persist(data);
foreach (ServiceItemPtr item, data->services()) {
@@ -153,6 +155,8 @@ void CampService::updateCamp(CampDataPtr data)
db->persist(item);
}
addDateAndUser(data, false);
db->update(data);
tr.commit();
}