vzex Posted August 6, 2017 Posted August 6, 2017 Can't add new attribute These options were available for the default theme before I deleted all sample data using thirty bees catalog cleaner
0 yaniv14 Posted August 6, 2017 Posted August 6, 2017 I am unable to reproduce your bug. Are you sure you have the latest version?
0 vzex Posted August 6, 2017 Author Posted August 6, 2017 How can I tell? Downloaded from TB last week. Any one specific file to download and replace? I also switched over to Panda, can't recall if default did the same. Would that matter? I know the options were there upon installation before I deleted sample store.
0 roband7 Posted August 6, 2017 Posted August 6, 2017 Looks like a regression in 1.0.2, classes/AttributeGroup.php function getHigherPosition() was bugged by: commit bc9637ba9092ad0ba3a4d5c3744a068e025e58b8 Author: Michael Dekker git@michaeldekker.nl Date: Thu Jun 22 02:42:04 2017 +0200 Cleanup AttributeGroup To fix it, just replace: ->select('MAX(position') With: ->select('MAX(position)')
0 roband7 Posted August 6, 2017 Posted August 6, 2017 Crap, looks like the forum software ate some of the special characters in my post. Just check the similar function at the end of classes/Attribute.php, that one does it correctly.
0 vzex Posted August 6, 2017 Author Posted August 6, 2017 My eyes are eating the rest of them :) Didn't work. Is this the latest copy? https://github.com/thirtybees/thirtybees/blob/1.0.x/classes/AttributeGroup.php Replaced mine with the above and getting the same error.
0 yaniv14 Posted August 7, 2017 Posted August 7, 2017 Good call @roband7 Try this https://github.com/thirtybees/thirtybees/commit/9170db1e37a2fa4a60ef75b36ec8c3d2377639cc
0 Traumflug Posted August 7, 2017 Posted August 7, 2017 To fix it, just replace: ->select(‘MAX(position’) With: ->select(‘MAX(position)’) Well, forum tries to "enhance" single quotes. Inside a code block it doesn't: php ->select('MAX(`position`)')
0 vzex Posted August 7, 2017 Author Posted August 7, 2017 Don't know how you all do it! Looks like my cat walked on the keyboard to me, but code block did it! :) Thanks!
Question
vzex
Can't add new attribute
These options were available for the default theme before I deleted all sample data using thirty bees catalog cleaner
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now