Plugin Connect Worldserver: Integrity Constraint Violation on deleting Pretranslation task

XMLWordPrintable

      Problem

      Currently pretranslation-projects are deketed automatically, after they are finihsed, with this code:

      $t5project->delete();
      

      This may lead to error "Integrity Constraint Violation" and project is not deleted as wanted.

      Solution

      Deleting a project (or task) should be done with a editor_Models_Task_Remover. SO Code should be changed to this:

      $taskRemover = ZfExtended_Factory::get(editor_Models_Task_Remover::class, [$t5project]);
      $taskRemover->remove(true);
      

            Assignee:
            Stephan Bergmann
            Reporter:
            Stephan Bergmann
            Aleksandar Mitrev
            NO-FRONTEND-TESTING NEEDED
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: