@@ -79,14 +79,16 @@ public function indexAction(): void
79
79
/**
80
80
* @param string $formIdentifier
81
81
* @param string $hash
82
+ * @param string $siteName
83
+ * @param string $dimensionsHash
82
84
* @param string $exportDefinitionIdentifier
83
85
* @throws InvalidConfigurationTypeException
84
86
* @throws CannotBuildObjectException
85
87
* @throws UnknownObjectException
86
88
* @throws ConfigurationException
87
89
* @throws InvalidQueryException
88
90
*/
89
- public function downloadAction (string $ formIdentifier , string $ hash , string $ exportDefinitionIdentifier ): void
91
+ public function downloadAction (string $ formIdentifier , string $ hash , string $ siteName , string $ dimensionsHash , string $ exportDefinitionIdentifier ): void
90
92
{
91
93
/** @var FormData[] $formDataItems */
92
94
@@ -97,7 +99,7 @@ public function downloadAction(string $formIdentifier, string $hash, string $exp
97
99
98
100
$ formDataItems = array_map (static function (FormData $ formData ) use ($ exportDefinition ) {
99
101
return $ formData ->getProcessedFormData ($ exportDefinition );
100
- }, $ this ->formDataRepository ->findByFormIdentifierAndHash ($ formIdentifier , $ hash )->toArray ());
102
+ }, $ this ->formDataRepository ->findByFormProperties ($ formIdentifier , $ hash, $ siteName , $ dimensionsHash )->toArray ());
101
103
102
104
$ exporter ->setFileName ($ fileName )->compileAndSend ($ formDataItems );
103
105
die ();
@@ -110,7 +112,7 @@ public function downloadAction(string $formIdentifier, string $hash, string $exp
110
112
*/
111
113
public function previewAction (FormData $ formDataEntry ): void
112
114
{
113
- $ formDataEntries = $ this ->formDataRepository ->findByFormIdentifierAndHash ($ formDataEntry ->getFormIdentifier (), $ formDataEntry ->getHash ());
115
+ $ formDataEntries = $ this ->formDataRepository ->findByFormProperties ($ formDataEntry ->getFormIdentifier (), $ formDataEntry ->getHash (), $ formDataEntry -> getSiteName (), $ formDataEntry -> getDimensionsHash ());
114
116
$ scheduledExport = $ this ->scheduledExportRepository ->findOneByFormIdentifier ($ formDataEntry ->getFormIdentifier ());
115
117
116
118
if ($ formDataEntries ->count () === 0 ) {
@@ -134,7 +136,7 @@ public function previewAction(FormData $formDataEntry): void
134
136
*/
135
137
public function deleteAction (FormData $ formDataEntry ): void
136
138
{
137
- $ this ->formDataRepository ->removeByFormIdentifierAndHash ($ formDataEntry ->getFormIdentifier (), $ formDataEntry ->getHash ());
139
+ $ this ->formDataRepository ->removeByFormIdentifierAndHash ($ formDataEntry ->getFormIdentifier (), $ formDataEntry ->getHash (), $ formDataEntry -> getSitename (), $ formDataEntry -> getDimensionsHash () );
138
140
$ this ->redirect ('index ' );
139
141
}
140
142
0 commit comments