Age | Commit message (Collapse) | Author |
|
This is done to set the id to null BEFORE resetting the updated fields.
The purpose of this is to avoid explicitly adding a NULL id into the DB,
which provokes an error in some DBMS (like postgres).
Fixes #1375
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
- Add mapSharedByDisplayNames in ShareService
- Update ItemController to call function on items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
- add IURLGenerator DI
- update url to "http://serverurl/news/sharedwithme"
- updated tests: added DI + adapted expected url
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
- add Item::__clone method resetting updated fields
- set item id to null in ShareService
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
- call correct ShareService function
- correct ShareService className annotation
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
- change argument $id to $itemId
- import Exceptions
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|
|
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
|