Author: sevein
Date: Wed Aug 22 10:47:10 2012
New Revision: 12163

Log:
Make sure that the column exists, fixes issue 2194

Modified:
   trunk/apps/qubit/modules/search/actions/globalReplaceAction.class.php

Modified: trunk/apps/qubit/modules/search/actions/globalReplaceAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/globalReplaceAction.class.php       
Wed Aug 22 09:51:41 2012        (r12162)
+++ trunk/apps/qubit/modules/search/actions/globalReplaceAction.class.php       
Wed Aug 22 10:47:10 2012        (r12163)
@@ -48,6 +48,12 @@
       {
         $io = QubitInformationObject::getById($hit->getDocument()->id);
 
+        // Omit iteration if the column does not exist
+        if (!$io->__isset($request->column))
+        {
+          continue;
+        }
+
         if (isset($request->allowRegex))
         {
           $pattern = '/' . strtr($request->pattern, array('/' => '\/')) . '/';

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to