jtzako
Založený: 12.01.2017
Príspevky: 16
Zaslal: 2017-01-24 18:04
Návrat hore
Odpovedať s citátom
|
Can I have more than one trigger of the same type?
$opts['triggers']['insert']['after'] = 'triggers/pm.TIA.inc'; // After requesting save or more in the add/copy page
I tried to have two 'insert after' (TIA) but only one was being run.
If I combined the php code into one file they both worked fine.
I'd prefer to have them separate for keeping it clean and easier to manage.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2017-01-26 02:13
Návrat hore
Odpovedať s citátom
|
I don't think the class file will recognize multiple trigger files. Thus the last configured one is probably the one being run. Try creating a new trigger which simply includes / requires the two files you want to run.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|