CMS MADE SIMPLE FORGE

Products

 

[#8102] $field->value for field definitions

avatar
Created By: manuel (manuel)
Date Submitted: Tue Jul 03 09:53:27 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 2.17
CMSMS Version: None
Severity: Trivial
Resolution: None
State: Open
Summary:
$field->value for field definitions
Detailed Description:
The line of code below produces an error in a default shop setup (products
module)
The error is related to the value of the "field definitions".
(using the latest versions of the involved modules and cmsms 1.11-beta2)

In Product > Detail Template:
{$field->value}

Produces:
Notice: Undefined property: stdClass::$fields in
C:\PORTABLE\EasyPHP-5.3.9\www\cmsms_1.11_beta2\tmp\templates_c\Products^ba95428528e8e057a2d58eb21a1aee20cb486111.module_db_tpl.Products;detail_Sample.php
on line 92

I would suggest changing the line to the follwoing but maybe there is a more
permanent solution?
{$field->value|default:''}

Greetings,
Manuel


History