Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2958

TermCollection not updateable after deleting the initial import user

    XMLWordPrintable

Details

    • High
    • If a user was deleted, and this user has imported a TBX, the resulting term collection could no be updated by re-importing a TBX anymore. This is fixed.

    Description

      problem

      If the initial user, which has imported the TBX, was deleted, the updateBy field of each term is set to null.

      This is then leading to PHP errors on (re)importing TBXs into the same TermCollection.

      error

      level: ERROR
          created: 2022-04-26 10:22:05
            ecode: E9999
           domain: editor.terminology.import
          message: TypeError: Cannot assign null to property editor_Models_Terminology_TbxObjects_Term::$updatedBy of type int
       appVersion: development
      file (line): /home/tlauria/www/translate5-dev/application/modules/editor/Models/Terminology/TbxObjects/Abstract.php (46)
             Host: t5dev.localdev
              URL: PUT /editor/worker/4237
            Trace:     #0 /home/tlauria/www/translate5-dev/application/modules/editor/Models/Terminology/BulkOperation/Abstract.php(108): editor_Models_Terminology_TbxObjects_Abstract->__construct()
         #1 /home/tlauria/www/translate5-dev/application/modules/editor/Models/Terminology/Import/TbxFileImport.php(278): editor_Models_Terminology_BulkOperation_Abstract->loadExisting()
         #2 /home/tlauria/www/translate5-dev/application/modules/editor/Models/Terminology/Import/TbxFileImport.php(189): editor_Models_Terminology_Import_TbxFileImport->prepareImportArrays() [...]

       

      solution

      Allow null values here.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: