[4.1 Beta 3] Mass-management tools: Criteria selection undefined variable: last_order, when areachoice is [Select All Areas](0)
In XF2.1, attempting to progress from the 'Criteria Selection' to the 'Prepare and Review' stage is interrupted by an undefined variable error when the area selection form element
areachoice[] is set to "[Search All Areas]" (value="0"). When a specific area is selected, this undefined variable error is not triggered.
ErrorException: [E_NOTICE] Undefined variable: last_order src/addons/vw/vw/_core/view/cp/massive/vw.php:296
Code:
#0 src/addons/vw/vw/_core/view/cp/massive/vw.php(296): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/volume1/web/xf...', 296, Array)
#1 src/addons/vw/vw/_core/view/cp/massive/vw.php(239): vw_CP_Massive_View->get_results_nav(Object(vw_CP_Massive_Controller), Array, Array)
#2 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_CP_Massive_View->results(Array)
#3 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('json')
#4 src/addons/vw/vw/XF/Mvc/View.php(87): vw_Reply_base_View->render('json')
#5 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderJson()
#6 src/XF/Mvc/Renderer/Json.php(63): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'admin:vw_genera...', Array)
#7 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('vw\\vw:Wiki', 'admin:vw_genera...', Array)
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}