cap days-before to under one period, per frequency (v1.1.1)

This commit is contained in:
2026-07-07 23:31:05 -03:00
parent 18b31e6d62
commit 873df71ed0
4 changed files with 80 additions and 3 deletions

View File

@@ -12,6 +12,11 @@ class Plugin extends Base
// (next to native "Edit recurrence"). Opens the RecoReco config modal.
$this->template->hook->attach('template:task:sidebar:after-basic-actions', 'recoReco:task/sidebar_action');
// Modal JS: keep "days before" within one period of the selected frequency.
$this->hook->on('template:layout:js', array(
'template' => 'plugins/RecoReco/Asset/js/recoreco-modal.js',
));
// The scheduling engine runs from the CLI (cron). Registered CLI-only so web requests do
// not build the console app.
if (php_sapi_name() === 'cli') {
@@ -36,7 +41,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.1.0';
return '1.1.1';
}
public function getPluginHomepage()