Uploaded image for project: 'In-Commerce'
  1. In-Commerce
  2. MINC-49

Notice about undefined field "File5" on product update

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.9
    • Fix Version/s: 5.0.4-B1
    • Component/s: General
    • Labels:
      None

      Description

      When I update product by hand using this code:

      $product =& $this->Application->recallObject('p', null, Array ('skip_autoload' => true));

      $products = $application->Conn->Query($product->GetSelectSQL(), $product->IDField);

      foreach ($products as $product_id => $product_data)

      { $product->LoadFromHash($product_data); $product->Update(); }

      then I always get notice about undefined field "File5". This happens because there is same method for creating file and image fields for category item, but different for saving them. Field "PrimaryFile" is created instead if "File5" at the end.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: