Merge branch '33-revert-version-commits' into 'develop'
revert: ⏪ revert a73bcc2b4b and...
See merge request ldc-web/projets/dam!11
This commit is contained in:
commit
3bc7a371df
1 changed files with 2 additions and 4 deletions
|
|
@ -39,9 +39,7 @@ class XmlArcadiaMediasIn extends XmlJobs
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $nullableFields = [
|
||||
'version'
|
||||
];
|
||||
protected $nullableFields = [];
|
||||
|
||||
/**
|
||||
* Fields that are unique
|
||||
|
|
@ -71,7 +69,7 @@ class XmlArcadiaMediasIn extends XmlJobs
|
|||
$media = Media::withTrashed()->where($uniqueColumnsKey)->firstOrFail();
|
||||
|
||||
$media->arcadia_id = $line['arcadia_id'];
|
||||
$media->version = $line['version'] ?? 1;
|
||||
$media->version = $line['version'];
|
||||
$media->isLocked = false;
|
||||
|
||||
$media->saveOrFail();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue