Skip to content

Commit

Permalink
If handle is null need to re-generate it. Fixes Issue pointybeard#1.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdunn committed Sep 28, 2009
1 parent 01daa1e commit 666747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/field.uniqueinput.php
Expand Up @@ -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, "
Expand Down

0 comments on commit 666747a

Please sign in to comment.