diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 09225f97158..b29093d7176 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -7379,10 +7379,7 @@ class Form
$objecttmp = null;
- $InfoFieldList = explode(":", $objectdesc, 4);
- $vartmp = $InfoFieldList[3];
- $InfoFieldList[4] = preg_replace('/^.*:(\w*)$/', '\1', $vartmp); // take the sort field
- $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field
+ $InfoFieldList = explode(":", $objectdesc);
$classname = $InfoFieldList[0];
$classpath = $InfoFieldList[1];