improve default setting for start and end
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3179 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									8af44efcaf
								
							
						
					
					
						commit
						50a7302d73
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -233,7 +233,11 @@ class WorkItem(Stateful, Track): | |||
|             self.reindex('timeStamp') | ||||
|         data = self.data | ||||
|         for k, v in kw.items(): | ||||
|             if v is not None: | ||||
|                 data[k] = v | ||||
|         start, end = data.get('start'), data.get('end') | ||||
|         if start and end and end < start: | ||||
|             data['end'] = start | ||||
| 
 | ||||
|     def createNew(self, action, userName, copyData=None, **kw): | ||||
|         if copyData is None: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm