i think i found a bug.When im trying to create features from xml file either with fn_update_product_feature or with a custom function i made talking straight to the database,they show just fine in the databse but in the front end i get this error when i open the modal
PHP Notice
Message
Undefined index: feature_id
Error at
C:\xampp2\htdocs\cs-cart4\app\controllers\backend\product_features.php, line: 84
Backtrace
File:
C:\xampp2\htdocs\cs-cart4\app\controllers\backend\product_features.php
Line:
84
Function:
{closure}
File:
C:\xampp2\htdocs\cs-cart4\app\functions\fn.control.php
Line:
680
Function:
include
File:
C:\xampp2\htdocs\cs-cart4\app\functions\fn.control.php
Line:
451
Function:
fn_run_controller
File:
C:\xampp2\htdocs\cs-cart4\admin.php
Line:
27
Function:
fn_dispatch
PHP Notice
Message
Undefined index: feature_type
Error at
C:\xampp2\htdocs\cs-cart4\app\controllers\backend\product_features.php, line: 85
Backtrace
File:
C:\xampp2\htdocs\cs-cart4\app\controllers\backend\product_features.php
Line:
85
Function:
{closure}
File:
C:\xampp2\htdocs\cs-cart4\app\functions\fn.control.php
Line:
680
Function:
include
File:
C:\xampp2\htdocs\cs-cart4\app\functions\fn.control.php
Line:
451
Function:
fn_run_controller
File:
C:\xampp2\htdocs\cs-cart4\admin.php
Line:
27
Function:
fn_dispatch
the error is random lets say i will pass for creation 20 filters,12 of them will have this error,if i delete them and pass them again different 12 will have this error.I searched this error when im trying to see what return the fn_get_product_feature_data() which is responsible to get the feature data for the product_features.php with one of the ids which have the error it returns empty array,if i try and call fn_get_product_feature_data from any other controller with the same id as before it return the data as it should.