Update of /var/cvs/src/org/mmbase/datatypes/processors
In directory james.mmbase.org:/tmp/cvs-serv15916

Modified Files:
      Tag: MMBase-1_8
        FunctionValueIfEmptyCommitProcessor.java 
Added Files:
      Tag: MMBase-1_8
        FunctionValueIfEmptyGetter.java 
Log Message:
MMB-1612


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/processors
See also: http://www.mmbase.org/jira/browse/MMB-1612


FunctionValueIfEmptyGetter.java is new



Index: FunctionValueIfEmptyCommitProcessor.java
===================================================================
RCS file: 
/var/cvs/src/org/mmbase/datatypes/processors/FunctionValueIfEmptyCommitProcessor.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- FunctionValueIfEmptyCommitProcessor.java    29 Feb 2008 14:45:19 -0000      
1.1.2.2
+++ FunctionValueIfEmptyCommitProcessor.java    2 Apr 2008 12:33:53 -0000       
1.1.2.3
@@ -21,7 +21,7 @@
  * 'fieldName') parameter.
  *
  * @author Michiel Meeuwissen
- * @version $Id: FunctionValueIfEmptyCommitProcessor.java,v 1.1.2.2 2008/02/29 
14:45:19 michiel Exp $
+ * @version $Id: FunctionValueIfEmptyCommitProcessor.java,v 1.1.2.3 2008/04/02 
12:33:53 michiel Exp $
  * @since MMBase-1.8.5
  */
 
@@ -44,7 +44,7 @@
             if (fieldName != null) {
                 node.setValueWithoutProcess(field.getName(), 
node.getValue(fieldName));
             } else {
-                node.setValue(field.getName(), 
node.getFunctionValue(functionName, null));
+                node.setValue(field.getName(), 
node.getFunctionValue(functionName, null).get());
             }
         }
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to