Ajoute tous les champs du formulaire
This commit is contained in:
parent
fa069edee8
commit
4f12d3da3b
@ -103,10 +103,10 @@ class Account
|
||||
file_put_contents(sprintf('%s/add.html', $log_folder), $crawler->html());
|
||||
$form = $crawler->selectButton('Valider')->form();
|
||||
$image0 = fopen(sprintf('%s/%s/image0.jpg', DEALS_DIR, $deal->getId()), 'r');
|
||||
$fields = [
|
||||
'check_type_diff' => 0,
|
||||
'company_ad' => 0,
|
||||
// TODO what are those ?
|
||||
$fields = $form->getPhpValues();
|
||||
$fields = array_merge(
|
||||
$fields,
|
||||
[
|
||||
'location_p' => sprintf('%s %s', $this->config->city, $this->config->postal_code),
|
||||
'zipcode' => $this->config->postal_code,
|
||||
'city' => $this->config->city,
|
||||
@ -124,7 +124,8 @@ class Account
|
||||
'image0' => $image0,
|
||||
'no_salesmen' => 1,
|
||||
'phone_hidden' => 0,
|
||||
];
|
||||
]
|
||||
);
|
||||
array_walk($fields, function (&$item, $key) {
|
||||
$item = [
|
||||
'name' => $key,
|
||||
|
Loading…
Reference in New Issue
Block a user