Code Duplication    Length = 18-18 lines in 2 locations

programs/utilit/cet_deposit_request.ui.php 1 location

@@ 246-263 (lines=18) @@
243
	 * Load values into editor
244
	 * 
245
	 */
246
	protected function loadValues()
247
	{
248
		if (isset($_POST['cet']))
249
		{
250
			$this->setValues(array('cet' => $_POST['cet']));
251
		} else {
252
			if (isset($this->deposit))
253
			{
254
				$this->setValues(array('cet' => $this->deposit->getRow()));
255
			}
256
		}
257
		
258
		if (isset($this->deposit))
259
		{
260
			$this->setHiddenValue('cet[id]', $this->deposit->id);
261
			$this->setHiddenValue('id_deposit', $this->deposit->id);
262
		}
263
	}
264
	
265
	
266
	protected function addFields()

programs/utilit/workperiod_recover_request.ui.php 1 location

@@ 308-325 (lines=18) @@
305
	 * Load values into editor
306
	 * 
307
	 */
308
	protected function loadValues()
309
	{
310
		if (isset($_POST['workperiod']))
311
		{
312
			$this->setValues(array('workperiod' => $_POST['workperiod']));
313
		} else {
314
			if (isset($this->workperiod))
315
			{
316
				$this->setValues(array('workperiod' => $this->workperiod->getRow()));
317
			}
318
		}
319
		
320
		if (isset($this->workperiod))
321
		{
322
			$this->setHiddenValue('workperiod[id]', $this->workperiod->id);
323
			$this->setHiddenValue('id_workperiod', $this->workperiod->id);
324
		}
325
	}
326
	
327
	
328
	protected function addFields()