unclecheese / KickAssets

The KickAssets module for SilverStripe is an alternative to AssetAdmin
http://www.leftandmain.com
40 stars 8 forks source link

Using MultipleFileAttachmentField does not create needed ManyManySort field in the database #36

Open priithansen opened 12 years ago

priithansen commented 12 years ago

After creating the ManyManySort field manually everything seems to work as should.

[26-Feb-2012 05:37:33] Error at sapphire/core/model/MySQLDatabase.php line 525: Couldn't run query: INSERT INTO "SomePage_MyFiles" ("SomePageID","FileID" , "ManyManySort") VALUES (16, 169 , '1')

Unknown column 'ManyManySort' in 'field list' (http://localhost:8888/ss/admin/EditForm) [26-Feb-2012 05:39:06] Error at sapphire/core/model/MySQLDatabase.php line 525: Couldn't run query: INSERT INTO "SomePage_MyFiles" ("SomePageID","FileID" , "ManyManySort") VALUES (16, 169 , '1')

Unknown column 'ManyManySort' in 'field list' (http://localhost:8888/ss/admin/EditForm)

micahsheets commented 12 years ago

ManyManySortable is supposed to work after editing the _config as detailed below. Updates and pull requests since this functionality was added may have broken it however.