Problem/Motivation

I hit a case when some Interfaces strings are being processed by the Cart for XTM translations requests, but they fail validation with $item->getWordCount() == 0 (@see Job->addItem method).

This causes the XTM Request process (Cart->FormSubmit) to break with an AjaxError ... and this is caused by the wrong catch Exception syntax

Proposed resolution

Fix the catch Exception syntax, also in other similar Tmgmt_xtm module code similar cases.

Comments

itamair created an issue. See original summary.

itamair’s picture

The attached patch fixes the error from the Cart, and also potentially in the Connector (same syntax catch Exception error ...)

itamair’s picture

Status: Active » Needs review
pjassem’s picture

Assigned: itamair » connectors-xtm
Status: Needs review » Needs work
pjassem’s picture

Assigned: connectors-xtm » pjassem

  • itamair authored ff2e59d on 8.x-5.x
    Issue #3208923 by itamair: Wrong Exception catch syntax in Cart->...
itamair’s picture

This looks merged into dev branch. So it could be closed by the module administrator, I guess ...

itamair’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.