mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	use defines S_DRAFT_APP and S_RELEASE instead of numbers
This commit is contained in:
		
							parent
							
								
									0c1c829cca
								
							
						
					
					
						commit
						9a6772b59a
					
				|  | @ -231,7 +231,7 @@ if ($_POST["approvalStatus"]==-1){ | |||
| 	// count of the approvals required for this document.
 | ||||
| 	if ($approvalCT == $approvalTotal) { | ||||
| 		// Change the status to released.
 | ||||
| 		$newStatus=2; | ||||
| 		$newStatus=S_RELEASED; | ||||
| 		if($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) { | ||||
| 			// Send notification to subscribers.
 | ||||
| 			if($notifier) { | ||||
|  |  | |||
|  | @ -256,11 +256,11 @@ if ($_POST["reviewStatus"]==-1){ | |||
| 		// If the approvals received is less than the approvals total, then
 | ||||
| 		// change status to pending approval.
 | ||||
| 		if ($approvalCT<$approvalTotal) { | ||||
| 			$newStatus=1; | ||||
| 			$newStatus=S_DRAFT_APP; | ||||
| 		} | ||||
| 		else { | ||||
| 			// Otherwise, change the status to released.
 | ||||
| 			$newStatus=2; | ||||
| 			$newStatus=S_RELEASED; | ||||
| 		} | ||||
| 		if ($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) { | ||||
| 			// Send notification to subscribers.
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann