advance template installment on RecoReco spawn (v1.0.3)

This commit is contained in:
2026-07-08 00:32:48 -03:00
parent 7fde8cb3d9
commit 305ee59477
3 changed files with 45 additions and 2 deletions

View File

@@ -34,6 +34,11 @@ class Plugin extends Base
// and a manual Duplicate copies it verbatim.
$this->hook->on('model:task:duplication:aftersave', array($persistence, 'onDuplication'));
// RecoReco (calendar recurrence) spawns a copy and emits this signal. The clone already got
// the finance verbatim (via onDuplication above); here we advance the SOURCE template's
// installment, since RecoReco's ongoing card is the template that stays.
$this->hook->on('recoreco:task:spawned', array($persistence, 'onRecoRecoSpawn'));
// The line-3 money badge on each board card, rendered directly under the title. Two hooks:
// "private" is the normal board, "public" is the read-only board shared by token.
$this->template->hook->attach('template:board:private:task:after-title', 'financeBuddy:board/task_money');
@@ -72,7 +77,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.0.2';
return '1.0.3';
}
public function getPluginHomepage()