Feature #8247 ยป fluid_form_addQueryString.diff

Susanne Moog, 2010-06-15 14:02

View differences:

Classes/ViewHelpers/FormViewHelper.php (Arbeitskopie)
101 101
		$this->registerTagAttribute('name', 'string', 'Name of form');
102 102
		$this->registerTagAttribute('onreset', 'string', 'JavaScript: On reset of the form');
103 103
		$this->registerTagAttribute('onsubmit', 'string', 'JavaScript: On submit of the form');
104
		$this->registerTagAttribute('addQueryString', 'boolean', 'Add Query Params');
104 105

  
105 106
		$this->registerUniversalTagAttributes();
106 107
	}
......
122 123
	 */
123 124
	public function render($action = NULL, array $arguments = array(), $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $object = NULL, $pageType = 0, $fieldNamePrefix = NULL, $actionUri = NULL) {
124 125
		$this->setFormActionUri();
125

  
126 126
		if (strtolower($this->arguments['method']) === 'get') {
127 127
			$this->tag->addAttribute('method', 'get');
128 128
		} else {
......
166 166
				->reset()
167 167
				->setTargetPageUid($this->arguments['pageUid'])
168 168
				->setTargetPageType($this->arguments['pageType'])
169
				->setAddQueryString($this->arguments['addQueryString'])
169 170
				->uriFor($this->arguments['action'], $this->arguments['arguments'], $this->arguments['controller'], $this->arguments['extensionName'], $this->arguments['pluginName']);
170 171
			$this->formActionUriArguments = $uriBuilder->getArguments();
171 172
		}
    (1-1/1)