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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user