Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2013 at 21:09 UTC
Updated:
4 Dec 2013 at 12:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
albert volkman commentedEasy enough fix.
Comment #2
albert volkman commentedHrm, this leads to another issue-
Fatal error: Call to undefined method Bean::setDefault() in bean.pages.inc on line 535And, I can't seem to find a setDefault method anywhere...
Comment #3
damienmckennaDrupal core uses 'node/%node/revisions/%/revert' for node revisions, so lets use that URL.
Comment #4
damienmckennaThat link was for something else, this will work.
Comment #5
damienmckennaNeeded to run menu_rebuild() too.
Comment #6
damienmckennaCommitted.
Comment #7
damienmckennaSorry Albert, I never noticed your replies, had a serious case of tunnel-vision.
It may have needed the hook_update_N() to rebuild the menu cache before it would work correctly, see the patch in #5.
Comment #9
ar-jan commentedOn a fresh install of Drupal 7.23 with Bean 1.5 this still happens. When I create a block type, create a block, edit it and create a new revision, go to the revision list and click 'Set active' on the first revision.
The link is to /block/mytestblock/revisions/1/set-active?destination=block/mytestblock/revisions.
Fatal error: Call to undefined method Bean::setDefault() in /sites/all/modules/contrib/bean/includes/bean.pages.inc on line 540.
Comment #10
ar-jan commentedtitle.
Comment #11
samvel commentedsubscribe, method missing
Comment #12
indytechcook commentedNot sure what happen here but it was removed
Here is the fix: https://drupal.org/commitlog/commit/22232/8bd0b75ab9ca6b6a4bacb8448cecfe...