quickapps / cms

Modular CMS powered by CakePHP
GNU General Public License v3.0
164 stars 69 forks source link

ListField error! #188

Open LeLuyen opened 6 years ago

LeLuyen commented 6 years ago

Hi Chris,

If we make more than one field with type as ListField on one content type, it will have problem.

Please check and fix it.

Thanks you!

LeLuyen commented 6 years ago

Hi Chris,

Here is the log

2018-03-29 14:46:57 Notice: Notice (8): Trying to get property of non-object in [D:\Ampps\www\luyenlv\vendor\quickapps-plugins\content\src\Template\Admin\Manage\edit.ctp

<?php echo $revision->data->title; ?> 'confirm' => __d('content', 'You are about to delete: "{0}". Are you sure ?', $revision->data->title),

quickapps commented 6 years ago

I'll try to reproduce this issue. However, I don't see how having two "ListFields" produces a "Trying to get property of non-object in".

LeLuyen commented 6 years ago

Hi Chris,You can try with special character list and make value is same label value.Thanks & Best regards,On Mar 30, 2018 4:18 AM, QuickApps notifications@github.com wrote:I'll try to reproduce this issue. However, I don't see how having two "ListFields" produces a "Trying to get property of non-object in".

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

botchris commented 6 years ago

I was totally unable to reproduce this issue.

screen shot 2018-04-05 at 15 35 23

LeLuyen commented 6 years ago

Hi Chris,

Here my design

p_availability | List p_capacity | List p_co | List p_code | Text p_condition | List p_description | Text p_images | Image p_maintain | Text p_model | Text p_price | Text p_promotion_description | Text p_sale_price | Text p_short_desctiption | Text p_term_binh_nong_lanh | Term Reference p_term_den_suoi | Term Reference p_term_dieu_hoa_am_tran | Term Reference p_term_dieu_hoa_ap_tran | Term Reference p_term_dieu_hoa_multi | Term Reference p_term_dieu_hoa_nhiet_do | Term Reference p_term_dieu_hoa_tu_dung | Term Reference p_term_do_gia_dung | Term Reference p_term_may_giat | Term Reference p_term_may_loc_nuoc | Term Reference p_term_phu_kien | Term Reference p_term_quat | Term Reference p_term_tu_dong_tu_mat | Term Reference p_types | List

Very weird it can't save history after edit (the create a new product is ok).

When i deleted all the fields are List, it works, i don't know why.

I'm trying with content type are the article and page is ok