another versioning fixes: link to selected version when editing, show same version after editing
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1679 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									d436849790
								
							
						
					
					
						commit
						94fafdfb32
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -257,7 +257,7 @@ class EditObject(FormController): | |||
|             self.view.virtualTargetObject = obj | ||||
|             self.request.annotations['loops.view']['target'] = obj | ||||
|         self.updateFields(obj) | ||||
|         self.request.response.redirect(self.view.virtualTargetUrl) | ||||
|         self.request.response.redirect(self.view.virtualTargetUrl + '?version=this') | ||||
|         return False | ||||
|         #return True | ||||
| 
 | ||||
|  |  | |||
|  | @ -220,7 +220,7 @@ | |||
|           <a href="#" | ||||
|              onclick="objectDialog('edit', 'edit_object.html'); return false;" | ||||
|              tal:define="version request/version|nothing; | ||||
|                          versionPar python: version and '?version=$version' or ''" | ||||
|                          versionPar python: version and '?version=' + version or ''" | ||||
|              tal:attributes="onclick string:objectDialog('edit', '$url/edit_object.html$versionPar');; return false;;"> | ||||
|             Edit Resource... | ||||
|           </a> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm