Skip to main content
Topic: Undefined index with use Master Form (Read 1825 times) previous topic - next topic

Undefined index with use Master Form

Hello, I have 3 tables:

Lots: Id (PK, Autoincrement), LotName ...

LotsImages: Id (PK, Autoincrement), LotId, Name ...
LotsVideos: Id (PK, Autoincrement), LotId, Name ...

In the LotsImages add page add a MasterForm Lots / add and associate the FK MasterField LotId

Same procedure for LotsVideos.

When loading the data and trying to save, the errors occur Undefined index: lotsvideos,
Undefined index: lotsimages,
Warning: Cannot modify header information - headers already sent by (output started at ... app \ controllers \ LotsController.php: 229)


Checking the array that comes in the Post, the arrays of LotsImages and LotsVideos defined are not found.

app \ controllers \ LotesController.php: 230:
array (size = 20)
  'auctionId' => string '1' (length = 1)
  'nro' => string '2' (length = 1)
  'name' => string 'sa' (length = 2)
  'dateNac' => string '2020-09-03' (length = 10)
  'sex' => string 'M' (length = 1)
  'observations' => string '' (length = 0)
  'image' => string '' (length = 0)
  'status' => string '' (length = 0)
  'mother' => string '' (length = 0)
  'parent' => string '' (length = 0)
  'tattoo' => string '' (length = 0)
  'weight' => string '0' (length = 1)
  'ce' => string '0' (length = 1)
  'rp' => string '0' (length = 1)
  'pedigree' => string '' (length = 0)
  'otherData' => string '' (length = 0)
  'raceId' => string '1' (length = 1)
  'categoryId' => string '' (length = 0)
  'peloId' => string '' (length = 0)

Is the association of forms made correct?
Is it necessary to make another configuration?
It may be that the use of Autoincrements is incorrect in these cases

From already thank you very much

 

Re: Undefined index with use Master Form

Reply #1
This might be as a result of you trying to fo more than one master relationship from the same table in the same table😆.i know what i have said sounds confusing but try understand .
jaymoore stah @facebook.com