PKP Bugzilla – Bug 6579
Can't move custom blocks
Last modified: 2011-04-15 15:49:00 PDT
I've started with a fresh copy of ojs-stable-2_3; freshly-installed OJS; newly-set up journal. I can enable the custom block plugin; create new custom blocks; fill them with information and have them display in the right navigation bar just fine. The *only* thing I still can't do is move them up/down OR right/left. Taking a look at the plugin_settings table, it looks like the table is missing rows for each custom block -- specifically, the row that sets the "seq" setting_value, which determines plugin order. (Otherwise, each custom block as three rows each -- context, enabled, and blockContent.) I can create the seq rows manually myself in the DB, and set the vertical sort order for the custom block that way, but even after that the vertical sorting seems wonky, and I still can't move the custom block horizontally. This may be related to Bug 6413, which has been filed against OCS, but the patch filed there already appears to be present in my OJS checkout.
James, I can't duplicate this behavior. Could you send me a DB dump from your install?
Created attachment 3490 [details] Patch against OJS pre-2.3.5 James, I'm not sure why, but versions.current is marked 0 for your customBlockManager. This might've caused that to happen if you tried to upload a new version of the plugin via the plugin installer, but I don't know why that would be the case with a new install. Could you try a new install and see if you can still duplicate that behavior?
Created attachment 3491 [details] Additional patch against OJS pre-2.3.5 Correct escaping of plugin names e.g. that include spaces.
Created attachment 3492 [details] Additional patch against OJS pre-2.3.5 (Fixed forgotten echo statement)
Created attachment 3493 [details] Patch against OCS 2.3.3-1