From f2b286d1a121df2a9aecb99dce008b1a5a343713 Mon Sep 17 00:00:00 2001
From: Cameron <e107inc@gmail.com>
Date: Sun, 3 Jul 2016 19:47:23 -0700
Subject: [PATCH] Fix for getModel() in custom form method 'read' mode.

---
 e107_handlers/admin_ui.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php
index 80efe6213..fa8a48f0d 100644
--- a/e107_handlers/admin_ui.php
+++ b/e107_handlers/admin_ui.php
@@ -2770,6 +2770,12 @@ class e_admin_controller_ui extends e_admin_controller
 			$this->_setModel();
 		}
 
+		if($this->getQuery('action') == 'list') // allow for use of getModel() at all times.
+		{
+			return $this->getListModel();
+		}
+
+
 		return $this->_model;
 	}