refactor(plugin): rename Plan to Program and add audience/UTM routes
Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
This commit is contained in:
1 parent
8268fad886
commit
71ff11390b
121 files changed
+5011
-2874
No files matched your search
@@ -2,11 +2,11 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\PlanBundle\Validator\Constraints;
|
||||
namespace MauticPlugin\ProgramBundle\Validator\Constraints;
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use MauticPlugin\PlanBundle\Entity\Task;
|
||||
use MauticPlugin\PlanBundle\Entity\TaskDependency;
|
||||
use MauticPlugin\ProgramBundle\Entity\Task;
|
||||
use MauticPlugin\ProgramBundle\Entity\TaskDependency;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
use Symfony\Component\Validator\ConstraintValidator;
|
||||
|
||||
@@ -50,7 +50,7 @@ class ValidTaskDependencyValidator extends ConstraintValidator
|
||||
return;
|
||||
}
|
||||
|
||||
if (null !== $task->getPlan() && null !== $dependsOn->getPlan() && $task->getPlan()->getId() !== $dependsOn->getPlan()->getId()) {
|
||||
if (null !== $task->getInitiative() && null !== $dependsOn->getInitiative() && $task->getInitiative()->getId() !== $dependsOn->getInitiative()->getId()) {
|
||||
$this->context->buildViolation($constraint::OTHER_PLAN)->atPath('dependencies')->addViolation();
|
||||
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user