Closed gcrofils closed 8 years ago
Hi @gcrofils I am sorry, I can not see the change, could you please explain me more?
Regards,
in models/concerns/camaleon_cms/custom_fields_read.rb
line 141
The default value for kind
is Post
(capital P)
def add_custom_field_group(values, kind = "Post")
but in the same file, line 27, the default value is post
(lower case)
args = args.is_a?(String) ? {kind: args, include_parent: false } : {kind: "post", include_parent: false }.merge(args)
It's not consistent.
It's not a big deal as you can always use the method get_field_groups
with arguments but it won't work without any argument (see examples in my previous comment).
ooohhh I can see, I will review....
in
models/concerns/camaleon_cms/custom_fields_read.rb
, line 28It seems default
kind
must bePost
instead ofpost
.args = args.is_a?(String) ? {kind: args, include_parent: false } : {kind: "post", include_parent: false }.merge(args)
with the current code :
with the modified code :
I didn't make a pull request as I'm not 100% sure of the consequences of this change and how to test it extensively. Nevertheless I made the change on my fork and it didn't break anything.