mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 05:57:44 -04:00 
			
		
		
		
	Quote approve button not shown for incorrect strtotime() conversion #1579
This commit is contained in:
		
							parent
							
								
									4b08c20d72
								
							
						
					
					
						commit
						016c58353f
					
				| @ -130,7 +130,7 @@ class ClientPortalController extends BaseController | |||||||
| 
 | 
 | ||||||
|         $showApprove = $invoice->quote_invoice_id ? false : true; |         $showApprove = $invoice->quote_invoice_id ? false : true; | ||||||
|         if ($invoice->due_date) { |         if ($invoice->due_date) { | ||||||
|             $showApprove = time() < strtotime($invoice->due_date); |             $showApprove = time() < strtotime($invoice->getOriginal('due_date')); | ||||||
|         } |         } | ||||||
|         if ($invoice->invoice_status_id >= INVOICE_STATUS_APPROVED) { |         if ($invoice->invoice_status_id >= INVOICE_STATUS_APPROVED) { | ||||||
|             $showApprove = false; |             $showApprove = false; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user