ports:
- '37126:80'
environment:
- VIRTUAL_HOST: toolbox.fluidbook.com, ysl.toolbox.fluidbook.com
- LETSENCRYPT_HOST: toolbox.fluidbook.com, ysl.toolbox.fluidbook.com
+ VIRTUAL_HOST: toolbox.fluidbook.com
+ LETSENCRYPT_HOST: toolbox.fluidbook.com
networks:
- fluidbook-toolbox
restart: unless-stopped
namespace App\Fields;
+use Cubist\Backpack\CubistCrudPanel;
+use Cubist\Backpack\Facades\App;
use Cubist\Backpack\Magic\Fields\SelectFromArray;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
foreach ($tasks as $id => $task) {
static::$_taskOptions[$id] = $p->projet_id . ' | ' . $p->nom . ' > ' . $task->nom;
}
-
}
}
+ if ($this->issetCrud()) {
+ /** @var CubistCrudPanel $crud */
+ $crud=$this->getCrud();
+ $invoicable=$crud->getCurrentEntry()->invoicable_company;
+ }
+
return static::$_taskOptions;
}
+ protected function _postSetCrud()
+ {
+ $this->setAttribute('options', $this->getOptionsFiltered());
+ }
+
protected static function _getProjects()
{
return Cache::remember('fluidbook_extranet_tasks_projects', 360, function () {
public static function lock($pdf, $operation, $callback)
{
$lockFile = $pdf . '.' . $operation . '.lock';
- while (file_exists($lockFile) && filemtime($lockFile) > time() - 3600) {
+ while (file_exists($lockFile) && filemtime($lockFile) > (time() - 300)) {
sleep(30);
}
touch($lockFile);
$this->install_online = $o;
}
+
public function onSaved(): bool
{
- $this->setComposedAttributes();
$this->checkHash();
$this->generateThumbnailsPreview();