chaddro/EasyPopulate-4.0 — Issue #3: manufacturers_id set to null in products database
Author: chaddro
Created: 2011-11-04 13:49:10+00:00
State: open

Came across this issue today. Old versions of EP would enter a NULL value in the products table for entries where no manufacturer is assigned. But, when you add a new product from within the zencart admin, and do not assign a manufacturer, the admin defaults this to zero.

Zero, for zencart, means no manufacturer. ID's in the manufacturer's table start at 1, not zero.

The code currently tests for '0'. If there are NULL values, this can through an error. For best compatibility, I should test for both possibilities. However, 0 is the "correct" value.