}
}
$data['id'] = $this->book_id;
+ $data['compiler'] = 3;
return 'var SETTINGS=' . json_encode($data) . ';' . "\n";
}
public function handle()
{
/** @var FluidbookPublication $fluidbook */
- foreach (FluidbookPublication::withoutGlobalScopes()->whereNull('hash')->orWhere('hash', '')->orWhereNull('cid')->orWhere('cid', '')->get() as $fluidbook) {
+ foreach (FluidbookPublication::withoutGlobalScopes()->where('created_ok', '1')->whereNull('hash')->orWhere('hash', '')->orWhereNull('cid')->orWhere('cid', '')->get() as $fluidbook) {
$fluidbook->save();
echo 'Process ' . $fluidbook->id . "\n";
}
$this->extranet_project = '';
$this->c_title = $this->title;
- $this->c_pages = count($this->composition);
+ if (null !== $this->composition) {
+ $this->c_pages = count($this->composition);
+ } else {
+ Log::warning('Fluidbook ' . $this->id . ' has empty composition');
+ }
+
}
public function __($str)
}).then((result) => {
if (result.isConfirmed) {
let select = $(Swal.getHtmlContainer()).find('select');
- window.location = '{{backpack_url($entry->getOption('name').'/'.$entry->id.'/changeowner')}}/' + select.val();
+ window.location = '{{backpack_url($entry->getOption('name'))}}/' + $(a).data('entry-id') + '/changeowner/' + select.val();
}
});
return false;
<option value="{{$values}}" selected>{!! $v !!}</option>
</select>
</div>
- <a href="#" class="changeowner" title="{{__('Modifier le propriƩtaire')}}">{!! $v !!}</a>
+ <a href="#" class="changeowner" data-entry-id="{{$entry->id}}"
+ title="{{__('Modifier le propriƩtaire')}}">{!! $v !!}</a>
</span>