From 666747a76d7ca74eed3df7bb9aeed956d02af313 Mon Sep 17 00:00:00 2001 From: Nick Dunn Date: Mon, 28 Sep 2009 10:17:31 +0100 Subject: [PATCH] If handle is null need to re-generate it. Fixes Issue #1. --- fields/field.uniqueinput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fields/field.uniqueinput.php b/fields/field.uniqueinput.php index e06ef32..81c8710 100755 --- a/fields/field.uniqueinput.php +++ b/fields/field.uniqueinput.php @@ -143,7 +143,7 @@ function processRawFieldData($data, &$status, $simulate=false, $entry_id=NULL){ ## Either this is a new entry, or the value has changed ## enough to generate a new handle - if(is_null($existing)){ + if(is_null($existing) || is_null($existing['handle'])){ $count = 2; while((bool)$this->_engine->Database->fetchVar('id', 0, "