Skip to content

Commit

Permalink
Fixed problems when field was set to autocomplete-non-select-multiple.
Browse files Browse the repository at this point in the history
The JS was appending a ', ' to the value wich was confusing the select box link. This fix will simply revove that comma.
  • Loading branch information
nils-werner committed Nov 3, 2010
1 parent 5f40cef commit f11a861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/field.referencelink.php
Expand Up @@ -182,7 +182,7 @@ public function displayPublishPanel(&$wrapper, $data=NULL, $flagWithError=NULL,
public function processRawFieldData($data, &$status, $simulate=false, $entry_id=NULL) {
$status = self::__OK__;

if(!is_array($data)) return array('relation_id' => $data);
if(!is_array($data)) return array('relation_id' => substr_replace($data, '', strrpos($data, ', '), strlen($data)));

if(empty($data)) return NULL;

Expand Down

0 comments on commit f11a861

Please sign in to comment.